/*
 * @Description:
 * @Author: Zzt
 * @Date: 2022-08-30 14:55:57
 * @LastEditTime: 2023-03-09 11:47:31
 */
import classNames from 'classnames/bind';
import styles from '../styles/SearchWarp.module.scss';
import { useEntrySearchContext } from '../../EntrySearch/contexts/EntrySearchContext';
import SearchWarp from '../../components/SearchWarp/SearchWarp';
import { useSearchTypeContext } from '../contexts/SearchTypeContext';

const cx = classNames.bind(styles);

const EntrySearchWarp = () => {
  const { getCondition, getFieldConditionList, conditions, fieldConditionList } =
    useEntrySearchContext();
  const { routerType } = useSearchTypeContext();

  return (
    <div className={cx('advance-container')}>
      <SearchWarp
        getCondition={getCondition}
        getFieldConditionList={getFieldConditionList}
        conditions={conditions}
        type={parseInt(routerType, 10)}
        fieldConditionList={fieldConditionList}
      />
      {/* 目前暂时去掉 */}
      {/* <div className={cx('tips')}>
        <p>
          tips：文件条目检索是主要针对 <b>&nbsp;&nbsp;著录项&nbsp;&nbsp;</b>进行模糊检索
        </p>
        <p>1. 如果希望进行电子文件原文进行全局查询，请切换到 【快捷检索】</p>
        <p>2. 如果希望利用标签聚类内容检索，请切换至 【标签检索】</p>
        <p>3. 如果要多条件，进行交叉综合检索，请切换至【高级检索】</p>
      </div> */}
    </div>
  );
};
export default EntrySearchWarp;
